package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AppResnetPicMapper;
import com.ruoyi.system.domain.AppResnetPic;
import com.ruoyi.system.service.IAppResnetPicService;
import com.ruoyi.common.core.text.Convert;

/**
 * 图片识别 服务层实现
 * 
 * @author ruoyi
 * @date 2019-08-05
 */
@Service
public class AppResnetPicServiceImpl implements IAppResnetPicService 
{
	@Autowired
	private AppResnetPicMapper appResnetPicMapper;

	/**
     * 查询图片识别信息
     * 
     * @param id 图片识别ID
     * @return 图片识别信息
     */
    @Override
	public AppResnetPic selectAppResnetPicById(Integer id)
	{
	    return appResnetPicMapper.selectAppResnetPicById(id);
	}
	
	/**
     * 查询图片识别列表
     * 
     * @param appResnetPic 图片识别信息
     * @return 图片识别集合
     */
	@Override
	public List<AppResnetPic> selectAppResnetPicList(AppResnetPic appResnetPic)
	{
	    return appResnetPicMapper.selectAppResnetPicList(appResnetPic);
	}
	
    /**
     * 新增图片识别
     * 
     * @param appResnetPic 图片识别信息
     * @return 结果
     */
	@Override
	public int insertAppResnetPic(AppResnetPic appResnetPic)
	{
	    return appResnetPicMapper.insertAppResnetPic(appResnetPic);
	}
	
	/**
     * 修改图片识别
     * 
     * @param appResnetPic 图片识别信息
     * @return 结果
     */
	@Override
	public int updateAppResnetPic(AppResnetPic appResnetPic)
	{
	    return appResnetPicMapper.updateAppResnetPic(appResnetPic);
	}

	/**
     * 删除图片识别对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteAppResnetPicByIds(String ids)
	{
		return appResnetPicMapper.deleteAppResnetPicByIds(Convert.toStrArray(ids));
	}
	
}
